![]() |
ThreadStyle |
Header: Threads.h |
enum ThreadStyle { kCooperativeThread = 1, kPreemptiveThread = 2 };
Historically, the Thread Manager defined two types of threads to run in an application context: cooperative and preemptive, but now it supports only cooperative threads.
Although the Thread Manager only supports a single type of thread, many Thread Manager functions (for historical reasons) require you to use the thread type to specify the type of the thread.
The ThreadStyle data type specifies the type of a thread.
Because there is only one type of thread (cooperative) the thread type accepts a single value, kCooperativeThread.
© 2000 Apple Computer, Inc. — (Last Updated 3/8/2000)